package com.springboot.ww.platform.pd.lms.api;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2024-07-27 09:52
 */
@NoArgsConstructor
@Data
public class PdBrandResp {


    @JsonProperty("result")
    private ResultDTO result;
    @JsonProperty("success")
    private Boolean success;
    @JsonProperty("requestId")
    private String requestId;
    @JsonProperty("errorCode")
    private Integer errorCode;
    @JsonProperty("errorMsg")
    private String errorMsg;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        @JsonProperty("total")
        private Integer total;
        @JsonProperty("pageItems")
        private List<PageItemsDTO> pageItems;

        @NoArgsConstructor
        @Data
        public static class PageItemsDTO {
            @JsonProperty("vid")
            private Long vid;
            @JsonProperty("brandId")
            private Long brandId;
            @JsonProperty("brandNameEn")
            private String brandNameEn;
            @JsonProperty("pid")
            private Long pid;
            @JsonProperty("regSerialCode")
            private String regSerialCode;
        }
    }
}
